; ModuleID = 'fun.c'
source_filename = "fun.c";target部分直接照抄，修改一些文件名
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"

; Function Attrs: nounwind readnone uwtable
define dso_local i32 @callee(i32 %0) local_unnamed_addr #0 {
    ;a*2，用加法快一些，用位移也行
    %2=add nsw i32 %0,%0
    ;返回a*2
    ret i32 %2
  
}
; Function Attrs: nofree norecurse nounwind uwtable
define dso_local i32 @main() local_unnamed_addr #1 {
    ;直接调用函数
  %1 = call i32 @callee(i32 110)
  ret i32 %1
}